<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body{
            perspective: 800px;
            transform-style: preserve-3d;
        }
        div{
            width: 100px;
            height: 100px;
            background-color: pink;
        }
        @keyframes rotates{
            0%{
                
            }

            100%{
                transform: rotateY(30deg);
            }
        }
    </style>
</head>
<body>
    <div></div>
    <!-- 
        required: 表单拥有该属性表示其内容不能为空，必填
        palceholder: 表单的提示信息，存在默认值将不显示
        autofocus: 自动聚焦属性，页面加载完成后自动聚焦到指定表单
        autocompleteL: 取值off或者on
            当用户在字段开始键入的时候，浏览器基于之前键入过的值，应该显示出在字段中填写的选项
            默认已经打开，如autocomplete='on'
        multiple: 可以多选文件提交
     -->
     <script>
        function maker(){
            let x = false;
            return function(x){
                
            }
        }
        document.querySelector('div').onmousemove = ()=>{
            document.querySelector('div').style.animation = 'rotates 1s infinite linear alternate'
        }
     </script>
</body>
</html>